package org.framework.app.web.entity;

import java.io.Serializable;
import java.util.List;

/**
 * 功能：分页
 * 
 * @author baijm
 * @version 1.0
 */
public class PagInfo implements Serializable {

	private static final long serialVersionUID = -6333015871784412687L;

	public PagInfo() {
	}

	private int page = -1; // 当前页

	private int total; // 总记录数

	private int rp; // 每页显示几条数据
	
	private boolean usePager;

	private List recordList; // 查询返回记录数

	private int rowLimit = -1; // 最大查询记录数

	private String sortName; // 排序字段名
	private String sortOrder; // 排序方式，升序/降序

	public boolean isUsePager() {
		return usePager;
	}

	public void setUsePager(boolean usePager) {
		this.usePager = usePager;
	}

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public int getRp() {
		return rp;
	}

	public void setRp(int rp) {
		this.rp = rp;
	}

	public List getRecordList() {
		return recordList;
	}

	public void setRecordList(List recordList) {
		this.recordList = recordList;
	}

	public int getRowLimit() {
		return rowLimit;
	}

	public void setRowLimit(int rowLimit) {
		this.rowLimit = rowLimit;
	}

	public String getSortName() {
		return sortName;
	}

	public void setSortName(String sortName) {
		this.sortName = sortName;
	}

	public String getSortOrder() {
		return sortOrder;
	}

	public void setSortOrder(String sortOrder) {
		this.sortOrder = sortOrder;
	}

}
